IIS7 Handler Mapping Migration from Sites Config to Server Config [migrated]
Posted
by
Danomite
on Pro Webmasters
See other posts from Pro Webmasters
or by Danomite
Published on 2011-06-29T20:07:11Z
Indexed on
2011/06/30
0:30 UTC
Read the original article
Hit count: 593
We have a bunch of sites running with about 8 handler mappings in their web.config files. Unfortunately, they were getting copied site to site every time a new one was added.
Now the time has come for me to get these out of all the web.config's and get them into the server's Handler Mappings.
If I add the mapping to the the server while it still exists in the web.config, IIS throws an error when you browse to the site. I have a few dozen web.config's to edit here with about 10 mappings in each.
Is there a way to add these mappings to the server without having to go in an edit each web.config file manually? Otherwise, every site will be down for a few minutes while I go into each file and remove the handlers.
Thanks!
© Pro Webmasters or respective owner